package com.hk.webapp.service.impl;

import com.hk.webapp.bean.CareerCity;
import com.hk.webapp.dao.CareerCityMapper;
import com.hk.webapp.service.CareerCityService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class CareerCityServiceImpl implements CareerCityService {
    @Resource
    private CareerCityMapper careerCityMapper;

    @Override
    public List<CareerCity> GetEntityList() {
        return careerCityMapper.GetEntityList();
    }

    @Override
    public CareerCity GetEntityById(Integer id) {
        return careerCityMapper.selectByPrimaryKey(id);
    }
}
